<?php
$dom = new DOMDocument();
$dom2 = new DOMDocument();

$dom->loadXML('<html><head><title>I am XML</title></head><body>Hello World</body></html>');
printit($dom->firstChild->firstChild->nodeValue);
echo "<br />".$dom->textContent;
print "<p>".$dom->documentURI."</p>";
$dom->load("cd_catalog.xml");
$dom2->loadXML("<h1>Hello there dude</h1>");
var_dump($dom->childNodes);
//foreach()
//printit();
//printit($);
/*
foreach($matches as $title_beginning_with_G){
		print $title_beginning_with_G;
}
*/

$variable = "variable";
print <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon no extra whitespace!
END;


function printit($thing_to_print)
{
	print "<p>".$thing_to_print."</p>";
}




?>